Windows下Git Status中文目录乱码

问题

window 10的powershell下执行git status命令,中文目录乱码,如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
PS F:\RobotScript> git status
On branch master
Your branch and 'origin/master' have diverged,
and have 4 and 1 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)
You have unmerged paths.
(fix conflicts and run "git commit")
(use "git merge --abort" to abort the merge)
Changes to be committed:
modified: "TestCase/\344\270\212\346\265\267\347\273\217\347\272\252\344\272\272/UI/common/android/caseSource.
robot"
Unmerged paths:
(use "git add <file>..." to mark resolution)
both modified: "TestCase/\344\270\212\346\265\267\347\273\217\347\272\252\344\272\272/UI/\345\210\233\345\273\
272\345\215\217\350\256\256.robot"

原因

未知

解决

1
git config --global core.quotepath false
欢迎打赏!